//
//  LYQStatusToolbar.swift
//  SwiftWeibo
//
//  Created by 刘英群 on 2017/2/9.
//  Copyright © 2017年 刘英群. All rights reserved.
//

import UIKit

class LYQStatusToolBar: UIView {

    var viewModel: LYQStatusViewModel? {
        
        didSet{
            
//            retweetedButton.setTitle("\(viewModel?.status.reposts_count)", for: .normal)
//            commentButton.setTitle("\(viewModel?.status.comments_count)", for: .normal)
//            likeButton.setTitle("\(viewModel?.status.attitudes_count)", for: .normal)
            retweetedButton.setTitle(viewModel?.retweetedStr, for: .normal)
            commentButton.setTitle(viewModel?.commentStr, for: .normal)
            likeButton.setTitle(viewModel?.likeStr, for: .normal)
        }
    }
    
    // 转发
    @IBOutlet weak var retweetedButton: UIButton!
    // 评论
    @IBOutlet weak var commentButton: UIButton!
    // 点赞
    @IBOutlet weak var likeButton: UIButton!
}
